# @Version  :1.0
# @author   :章建龄
# @File     :18_Traversal.py
# @Time     : 2024/3/16 15:44
names = ["朱建翎","孙康永","黄骏杰","徐世杰","曹扬","黄峰奇"]
print("\n遍历显示学生的姓名:\n")
for stuName in names:
    print(stuName)

myStr = input("请输入要显示遍历的字符串：")
for char in myStr:
    print(char)
